package web.suzy.oj.shiro;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * YangSuzy 软件工作室
 * 类名: AccountProfile
 * 描述: 存在redis session的当前登录用户信息
 * 功能: ---- 待定 -----
 *
 * @author YangSuzy
 * Date: 2022/11/14 15:27
 */
@Data
public class AccountProfile implements Serializable {
    @ApiModelProperty(value = "用户id")
    private String uid;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "真实姓名")
    private String realname;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "0可用，1不可用")
    private int status;

    /**
     * 方法名: getId
     * 描述: shiro登录用户实体默认主键获取方法为 getId
     *
     * @return java.lang.String
     * @date 2022/11/14 15:28
     * @auther YangSuzy
     **/
    public String getId() {
        return uid;
    }
}
